-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: tag canaries for cocoapods plugin #1702
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1702 +/- ##
==========================================
+ Coverage 80.23% 80.36% +0.12%
==========================================
Files 61 61
Lines 4665 4706 +41
Branches 1063 1025 -38
==========================================
+ Hits 3743 3782 +39
+ Misses 633 630 -3
- Partials 289 294 +5
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great! Does the canary need to be tagged for the pod? Could it just point to a commit hash? How does it work with forks?
Yeah the default way (and in the instance of this plugin, the supported way) of specifying a version in a for example -> https://github.com/Alamofire/Alamofire/blob/master/Alamofire.podspec#L8 One of the consequences of the podspec being a ruby file, it could end up being challenging to parse that in order to switch it between a hash (which im not sure is supported or not, it probably is) and back to a tag for a release Forks is a good point, I'm not sure how it would work with a fork, im going to do some experimentation with this canary build to validate use cases |
ok i refactored this (and forgot to change my git email for the commits, whatever). so i rewrite the source location to point to the remote/commit hash so it should work for forks, i'll need to test the canary of this PR out to totally verify, i looked through the core code and i think that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WOOT! 🎖️ Great job here! It's awesome to see canaries coming to other platforms!
🚀 PR was released in |
What Changed
Add canary support for cocoapods.
During canary hook, rewrite the source location in the podspec to the current remote pointing to the latest commit
then push it up and reset the podspec
i tested this out and committing the modified podspec isnt necessary (unless we'd need to read the version from it?)
Why
canaries are useful
Todo:
Change Type
Indicate the type of change your pull request is:
documentation
patch
minor
major
📦 Published PR as canary version:
under canary scope @auto-canary@10.5.1-canary.1702.20954.0
✨ Test out this PR locally via:
npm install @auto-canary/bot-list@10.5.1-canary.1702.20954.0 npm install @auto-canary/auto@10.5.1-canary.1702.20954.0 npm install @auto-canary/core@10.5.1-canary.1702.20954.0 npm install @auto-canary/all-contributors@10.5.1-canary.1702.20954.0 npm install @auto-canary/brew@10.5.1-canary.1702.20954.0 npm install @auto-canary/chrome@10.5.1-canary.1702.20954.0 npm install @auto-canary/cocoapods@10.5.1-canary.1702.20954.0 npm install @auto-canary/conventional-commits@10.5.1-canary.1702.20954.0 npm install @auto-canary/crates@10.5.1-canary.1702.20954.0 npm install @auto-canary/docker@10.5.1-canary.1702.20954.0 npm install @auto-canary/exec@10.5.1-canary.1702.20954.0 npm install @auto-canary/first-time-contributor@10.5.1-canary.1702.20954.0 npm install @auto-canary/gem@10.5.1-canary.1702.20954.0 npm install @auto-canary/gh-pages@10.5.1-canary.1702.20954.0 npm install @auto-canary/git-tag@10.5.1-canary.1702.20954.0 npm install @auto-canary/gradle@10.5.1-canary.1702.20954.0 npm install @auto-canary/jira@10.5.1-canary.1702.20954.0 npm install @auto-canary/maven@10.5.1-canary.1702.20954.0 npm install @auto-canary/microsoft-teams@10.5.1-canary.1702.20954.0 npm install @auto-canary/npm@10.5.1-canary.1702.20954.0 npm install @auto-canary/omit-commits@10.5.1-canary.1702.20954.0 npm install @auto-canary/omit-release-notes@10.5.1-canary.1702.20954.0 npm install @auto-canary/pr-body-labels@10.5.1-canary.1702.20954.0 npm install @auto-canary/released@10.5.1-canary.1702.20954.0 npm install @auto-canary/s3@10.5.1-canary.1702.20954.0 npm install @auto-canary/slack@10.5.1-canary.1702.20954.0 npm install @auto-canary/twitter@10.5.1-canary.1702.20954.0 npm install @auto-canary/upload-assets@10.5.1-canary.1702.20954.0 # or yarn add @auto-canary/bot-list@10.5.1-canary.1702.20954.0 yarn add @auto-canary/auto@10.5.1-canary.1702.20954.0 yarn add @auto-canary/core@10.5.1-canary.1702.20954.0 yarn add @auto-canary/all-contributors@10.5.1-canary.1702.20954.0 yarn add @auto-canary/brew@10.5.1-canary.1702.20954.0 yarn add @auto-canary/chrome@10.5.1-canary.1702.20954.0 yarn add @auto-canary/cocoapods@10.5.1-canary.1702.20954.0 yarn add @auto-canary/conventional-commits@10.5.1-canary.1702.20954.0 yarn add @auto-canary/crates@10.5.1-canary.1702.20954.0 yarn add @auto-canary/docker@10.5.1-canary.1702.20954.0 yarn add @auto-canary/exec@10.5.1-canary.1702.20954.0 yarn add @auto-canary/first-time-contributor@10.5.1-canary.1702.20954.0 yarn add @auto-canary/gem@10.5.1-canary.1702.20954.0 yarn add @auto-canary/gh-pages@10.5.1-canary.1702.20954.0 yarn add @auto-canary/git-tag@10.5.1-canary.1702.20954.0 yarn add @auto-canary/gradle@10.5.1-canary.1702.20954.0 yarn add @auto-canary/jira@10.5.1-canary.1702.20954.0 yarn add @auto-canary/maven@10.5.1-canary.1702.20954.0 yarn add @auto-canary/microsoft-teams@10.5.1-canary.1702.20954.0 yarn add @auto-canary/npm@10.5.1-canary.1702.20954.0 yarn add @auto-canary/omit-commits@10.5.1-canary.1702.20954.0 yarn add @auto-canary/omit-release-notes@10.5.1-canary.1702.20954.0 yarn add @auto-canary/pr-body-labels@10.5.1-canary.1702.20954.0 yarn add @auto-canary/released@10.5.1-canary.1702.20954.0 yarn add @auto-canary/s3@10.5.1-canary.1702.20954.0 yarn add @auto-canary/slack@10.5.1-canary.1702.20954.0 yarn add @auto-canary/twitter@10.5.1-canary.1702.20954.0 yarn add @auto-canary/upload-assets@10.5.1-canary.1702.20954.0